{% extends 'base.html' %}
{% block content %}
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>Redis实例管理</legend>
</fieldset>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
    <li class="layui-this">数据库基础信息</li>
    <li>新增数据[k/v]</li>
    <li>查询数据</li>
  </ul>
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
        <h4>&nbsp;&nbsp;&nbsp;数据库信息</h4><br>
        <table class="layui-table">
            <tr>
                <td style="width: 200px">节点信息：</td>
                <td>10.206.0.13</td>
            </tr>
            <tr>
                <td style="width: 200px">端口信息：</td>
                <td>6379</td>
            </tr>
            <tr>
                <td style="width: 200px">数据库：</td>
                <td>db[0-15]</td>
            </tr>
        </table>
    </div>

    <div class="layui-tab-item">
        <form action="/submit" method="post" class="layui-form">
            <div class="layui-form-item" >
                <div class="layui-input-inline">

                    <input type="text" name="keys" placeholder="keys" class="layui-input">
                </div>
                <div class="layui-input-inline">

                    <input type="text" name="values" placeholder="values" class="layui-input">
                </div>
                <input type="submit"  class="layui-btn" value="提交">
            </div>
{##}
{#           <div class="layui-input-inline">#}
{##}
{#               <h4>key:</h4><br>#}
{#               <input type="text" name="keys" placeholder="keys" class="layui-input"><br>#}
{#                <h4>values:</h4><br>#}
{#                <input type="text" name="values" placeholder="values" class="layui-input">#}
{#               <br>#}
{#               <input type="submit"  class="layui-btn" value="提交">#}
{#           </div>#}

        </form>
    </div>

    <div class="layui-tab-item">
        <form action="/show" method="post" class="layui-form">
            <h4>请输入你要查询的keys:</h4><br>
           <div class="layui-form-item" >
             <div class="layui-input-inline">
                 <input type="text" name="keys" placeholder="keys" class="layui-input">
             </div>
             <input type="submit" value="提交" class="layui-btn">
           </div>
        </form>

        {% block content1 %}

        {% endblock %}

    </div>
  </div>
</div>
{% endblock %}

{% block js %}
<script>
{#var data = '{{ value|tojson}}';#}
{#function fun2(){alert(data);}#}

</script>
  <style type="text/css">
      .tab1 {
          width: 300px;
          height: 300px;
          margin-top: 120px;
          margin-left: 380px;
          padding-top: 25px;
          border: 1px solid lightblue;
          background-color: whitesmoke;
      }
  </style>
{% endblock %}








